package com.bestcem.xm.deliver.service;

import com.alibaba.fastjson.JSONObject;
import com.bestcem.xm.component.mybatis.service.IXmService;
import com.bestcem.xm.deliver.controller.v2.param.CreateEmbedParam;
import com.bestcem.xm.deliver.controller.v2.param.EditEmbedParam;
import com.bestcem.xm.deliver.entity.DeliverDeliver;
import com.bestcem.xm.deliver.entity.DeliverEmbedDeliver;

/**
 * @author been
 * @description 针对表【ds_deliver_embeddeliver】的数据库操作Service
 * @createDate 2022-11-07 13:49:46
 */
public interface DeliverEmbedDeliverService extends IXmService<DeliverEmbedDeliver> {
    String createEmbedDeliver(CreateEmbedParam param);

    void triggerDeliverStatus(DeliverDeliver deliver, String action);

    String genEmbedJs(String deliverId);

    DeliverEmbedDeliver getEmbedDeliver(String deliverId);

    JSONObject editEmbedDeliver(String id, EditEmbedParam param);

    void releaseEmbedDeliver(String deliverId, Integer cType);
}
